package com.shop.cereshop.agent.dao.product;
import com.shop.cereshop.agent.page.product.ProductDetailVO;
import com.shop.cereshop.agent.page.product.ProductParam;
import com.shop.cereshop.agent.page.product.ProductVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.agent.param.product.ProductListDTO;
import com.shop.cereshop.commons.domain.agentProduct.CereAgentProduct;
import com.shop.cereshop.agent.param.product.ProductDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereAgentProductDAO extends BaseMapper<CereAgentProduct> {
    List<ProductVO> getProducerInfo();

    List<ProductVO> getSearchProducerInfo(ProductDTO  productDTO);

    ProductDetailVO getProducerDetail(@Param("productId") Long productId);

    List<ProductParam> getProductParams(@Param("productId") Long productId);

    List<ProductVO> getProducts(@Param("param") ProductListDTO param);
}
